package com.pzhu.dormitory.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * 菜单
 *
 * @author
 * @email
 * @date 2021-04-10 08:46:25
 */
@Data
@ToString
@TableName("menu")
@ApiModel(value = "Menu对象", description = "菜单")
public class MenuEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId
    @ApiModelProperty(value = "主键")
    private Long id;
    /**
     * 菜单名
     */
    @ApiModelProperty(value = "菜单名")
    private String name;
    /**
     * 图标
     */
    @ApiModelProperty(value = "图标")
    private String icon;
    /**
     * 菜单url
     */
    @ApiModelProperty(value = "菜单url")
    private String url;
    /**
     * 父id
     */
    @ApiModelProperty(value = "父id")
    private Long pid;

}
